package org.apak.model;

public class Customer {
	private int customer;
	private int subject_fk;
	private String customerName;
	private int type;
	private String typeName;
	
	public Customer() { }
	public Customer(int customer, int subject_fk, String customerName, int type) {
		this.customer = customer;
		this.subject_fk = subject_fk;
		this.customerName = customerName;
		this.type = type;
		if(type == 1)
			typeName = "person";
		else if(type == 2)
			typeName = "enterprise";
	}
	
	public int getCustomer() {
		return customer;
	}
	public void setCustomer(int customer) {
		this.customer = customer;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public int getSubject_fk() {
		return subject_fk;
	}
	public void setSubject_fk(int subject_fk) {
		this.subject_fk = subject_fk;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	
}
